home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 32
/
Aminet 32 (1999)(Schatztruhe)[!][Aug 1999].iso
/
Aminet
/
dev
/
e
/
SpeedTests.readme
< prev
next >
Wrap
Text File
|
1999-07-01
|
4KB
|
94 lines
Short: How to optimize in E
Author: misha@femina.com.pl (Michal Durys)
Uploader: misha@femina.com.pl (Michal Durys)
Version: 1.0 (30.5.99)
Type: dev/e
Keywords: e optimization misha polska poland
.---------------------------.
-------------( DESCRIPTION )
`---------------------------'
This package is a result of my adventures with code optimization in E. I
want my programs to be as fast as it's only possible. To achieve this I
did many tests. Now I decided to release the results to public.
These tests are fairly simple but very meaningful. Eg. did you know that
FOR i:=0 TO LOOP_COUNTER DO something
is almost ten times faster than
FOR i:=0 TO LOOP_COUNTER
something
ENDFOR
Just look at the included results and you will discover more intersting
facts. All timings were done on my A1200 equipped with Apollo 1240/040
(overclocked) turbo board.
But remember that the tests are not fully reliable, for example edit
increase.e and remove some tests like this:
PROC main()
test({addone}, 'x:=x+1', LOTS_OF_TIMES) ; x:=0
-> test({addql}, 'ADDQ.L #1,x', LOTS_OF_TIMES) ; x:=0
-> test({addqb}, 'ADDQ.B #1,x', LOTS_OF_TIMES) ; x:=0
test({increase}, 'INC x', LOTS_OF_TIMES) ; x:=0
ENDPROC
Compile the program and when you execute it you will get different results.
I was not able to track down the reason. If you can fix it be my guest.
.---------------------------.
-------------( DISTRIBUTION )
`---------------------------'
This package is public domain.
============================= Archive contents =============================
Original Packed Ratio Date Time Name
-------- ------- ----- --------- -------- -------------
1204 836 30.5% 30-May-99 16:38:30 +2conds
278 158 43.1% 27-Dec-98 17:29:38 +2conds.e
1636 1101 32.7% 30-May-99 16:38:44 +alloc128
628 292 53.5% 28-Dec-98 21:40:20 +alloc128.e
2184 1263 42.1% 30-May-99 16:38:46 +allocmany
1444 416 71.1% 30-May-99 16:33:46 +allocmany.e
188 133 29.2% 21-Nov-98 00:39:44 +bitmagic.m
1568 974 37.8% 30-May-99 16:39:16 +bounds
156 77 50.6% 30-May-99 16:44:42 +byteswap.results
104 49 52.8% 30-May-99 16:45:00 +ifnot.results
156 67 57.0% 30-May-99 16:45:24 +ifnotzero.results
104 47 54.8% 30-May-99 16:45:38 +ifthen.results
208 65 68.7% 30-May-99 16:45:58 +increase.results
104 60 42.3% 30-May-99 16:46:14 +mics.results
104 55 47.1% 30-May-99 16:54:32 +procexit.results
1589 781 50.8% 30-May-99 17:20:26 +SpeedTests.readme
622 253 59.3% 26-Dec-98 18:33:44 +bounds.e
2104 1082 48.5% 30-May-99 16:39:22 +byteswap
1171 308 73.6% 26-Dec-98 16:50:10 +byteswap.e
1244 861 30.7% 30-May-99 16:39:26 +for
304 166 45.3% 26-Dec-98 15:31:04 +for.e
1184 828 30.0% 30-May-99 16:39:28 +ifnot
275 160 41.8% 26-Dec-98 16:29:12 +ifnot.e
1232 841 31.7% 30-May-99 16:39:34 +ifnotzero
373 176 52.8% 27-Dec-98 18:05:00 +ifnotzero.e
1148 801 30.2% 30-May-99 16:39:36 +ifthen
260 150 42.3% 26-Dec-98 16:23:52 +ifthen.e
1360 870 36.0% 30-May-99 16:39:38 +increase
450 201 55.3% 02-Mar-99 15:12:58 +increase.e
1988 1026 48.3% 30-May-99 16:39:40 +mics
780 288 63.0% 18-Feb-99 01:13:22 +mics.e
1200 834 30.5% 30-May-99 16:39:42 +procexit
373 180 51.7% 27-Dec-98 17:18:02 +procexit.e
637 380 40.3% 02-Jan-99 13:53:42 +testspeed.e
462 333 27.9% 02-Jan-99 13:53:44 +testspeed.m
104 49 52.8% 30-May-99 16:40:42 +2conds.results
156 71 54.4% 30-May-99 16:41:36 +alloc128.results
208 102 50.9% 30-May-99 16:43:08 +allocmany.results
208 85 59.1% 30-May-99 16:43:30 +bounds.results
104 51 50.9% 30-May-99 16:44:12 +for.results
-------- ------- ----- --------- --------
29602 16470 44.3% 02-Jun-99 21:14:34 40 files